﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel;
using RATSharpW7.Model;
using RATSharp.Rest;
using System.Threading.Tasks;
using RATSharpW7.Converters;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
namespace RATSharpW7.ViewModel.CalendarViewModel
{
    /// <summary>
    /// VieModel for object calendar
    /// </summary>
    [DataContract]
    public class CalendarUserViewModel : AbstractCalendarViewModel
    {
        public CalendarUserViewModel()
        {

        }

        public override void loadCalendarOccupation(int month, int year, EventHandler<ModifyReservationEventArgs> eventHandler)
        {
            Task<Occupations> task = RestService.getInstance().getDatesUserOccupation(month, year);
            notifyChangeModel(task, eventHandler);
        }
    }
}
